package com.syh.jn.scm.domain.driver.event;

import com.syh.core.ddd.domain.DomainEvent;
import com.syh.jn.scm.domain.supplier.entity.logistics.LogisticsBill;

public class DriverLogisticsBillEvent extends DomainEvent<LogisticsBill> {

  //物流单创建
  public static final String DRIVER_LOGISTICS_BILL_CREATED = "driverLogisticsBillCreated";
  public static DriverLogisticsBillEvent bulidDriverLogisticsBillCreated(Object[] values) {
    DriverLogisticsBillEvent driverLogisticsBillEvent = new DriverLogisticsBillEvent();
    driverLogisticsBillEvent.eventName = DRIVER_LOGISTICS_BILL_CREATED;
    driverLogisticsBillEvent.values = values;
    return driverLogisticsBillEvent;
  }

  //物流单修改
  public static final String DRIVER_LOGISTICS_BILL_UPDATED = "driverLogisticsBillUpdated";
  public static DomainEvent bulidDriverLogisticsBillUpdated(Object[] values) {
    DriverLogisticsBillEvent driverLogisticsBillEvent = new DriverLogisticsBillEvent();
    driverLogisticsBillEvent.eventName = DRIVER_LOGISTICS_BILL_UPDATED;
    driverLogisticsBillEvent.values = values;
    return driverLogisticsBillEvent;
  }

  //物流单发货
  public static final String DRIVER_LOGISTICS_BILL_DELIVERY = "driverLogisticsBillDelivery";
  public static DriverLogisticsBillEvent bulidDriverLogisticsBillDelivery(Object[] values) {
    DriverLogisticsBillEvent driverLogisticsBillEvent = new DriverLogisticsBillEvent();
    driverLogisticsBillEvent.eventName = DRIVER_LOGISTICS_BILL_DELIVERY;
    driverLogisticsBillEvent.values = values;
    return driverLogisticsBillEvent;
  }

  //物流单收货
  public static final String DRIVER_LOGISTICS_BILL_COLLECTED = "driverLogisticsBillCollected";
  public static DriverLogisticsBillEvent bulidDriverLogisticsBillCollected(Object[] values) {
    DriverLogisticsBillEvent driverLogisticsBillEvent = new DriverLogisticsBillEvent();
    driverLogisticsBillEvent.eventName = DRIVER_LOGISTICS_BILL_COLLECTED;
    driverLogisticsBillEvent.values = values;
    return driverLogisticsBillEvent;
  }

  //物流单取消发货
  public static final String DRIVER_LOGISTICS_BILL_CANCELLED = "driverLogisticsBillCancelled";
    public static DomainEvent bulidDriverLogisticsBillCancelled(Object[] values) {
      DriverLogisticsBillEvent driverLogisticsBillEvent = new DriverLogisticsBillEvent();
      driverLogisticsBillEvent.eventName = DRIVER_LOGISTICS_BILL_CANCELLED;
      driverLogisticsBillEvent.values = values;
      return driverLogisticsBillEvent;
    }

}
